<me:UIVKKOPF  x:Class="WPFExcelReport.TVK03"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
    xmlns:UserControls="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Controls"
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
        xmlns:me="clr-namespace:WPFExcelReport"
     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIVKKOPF.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVKKOPF.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        </StackPanel>
        <DataGrid Grid.Row="1" 
             Grid.Column="0" 
             AutoGenerateColumns="False" 
             EnableRowVirtualization="False" 
             Name="dlgMaster"
             MaxHeight="300"
             ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster }}" 
             HeadersVisibility="Column" CanUserReorderColumns="True" CanUserResizeRows="True" 
             RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto" Height="Auto" EnableColumnVirtualization="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=VKKAUFKRS}" Header="" Width="Auto" MinWidth="24" />
                <DataGridTextColumn Binding="{Binding Path=VKKAUFLFD}" Header="{Binding Source={Localization:Translate Word=销售单}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=VKKNEUDAT}" Header="{Binding Source={Localization:Translate Word=创建日期}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=VKKNEUBEN}" Header="{Binding Source={Localization:Translate Word=跟单}}" Width="Auto" MinWidth="30" />
                <DataGridTextColumn Binding="{Binding Path=VKKSACHBE}" Header="{Binding Source={Localization:Translate Word=负责人}}" Width="Auto" MinWidth="30" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</me:UIVKKOPF>
